package com.acme.task2;

public class GCTest {
    public static Foo array[] = new Foo[1000000000];

    public static void main(String[] args) {
        int numberOfIterations = 100000000; // Finalize was called only starting from 1000000 iterations.

        for (int i = 0; i < numberOfIterations; i++) {
            array[i] = new Foo(i);
        }
    }
}
